using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace LifeChess
{
    public class Options
    {
        private static readonly string SOCKET_PORT_KEY = "SocketPort";

        public static int SocketPort { get; set; }

        public static void Reset()
        {
            PlayerPrefs.DeleteAll();
            Load();
        }

        public static void Save()
        {
            PlayerPrefs.SetInt(SOCKET_PORT_KEY, SocketPort);
            PlayerPrefs.Save();
        }

        public static void Load()
        {
            SocketPort = PlayerPrefs.GetInt(SOCKET_PORT_KEY, 23090);
        }
    }
}
